package com.quik.web.worker.service;

import java.util.List;

import com.quik.entity.DtaWorker;
import com.quik.entity.DtaWorkerType;

/**
 * 功能说明：
 *        技师的业务逻辑处理
 * @author Jenny
 *
 */
public interface WorkerService {
	/**
	 * 根据条件查询技师类型数量
	 * @param workerTypeName
	 * @param printerNo
	 * @return
	 * @throws Exception
	 */
	public int findWorkerTypeCount(String workerTypeName, Integer printerNo) throws Exception;
	
	/**
	 * 根据条件查询技师类型列表（分页）
	 * @param workerTypeName
	 * @param printerNo
	 * @param intPage
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	public List findWorkerType(String workerTypeName, Integer printerNo, Integer intPage, Integer pageSize) throws Exception;
	
	/**
	 * 检查技师类型是否重命
	 * @param workerType
	 * @return
	 * @throws Exception
	 */
	public boolean checkWorkerTypeName(String workerType) throws Exception;
	
	/**
	 * 新增技师类型
	 * @param workerType
	 * @throws Exception
	 */
	public void addWorkerType(DtaWorkerType workerType) throws Exception;
	
	/**
	 * 查询技师状态
	 * @return
	 * @throws Exception
	 */
	public List findWorkerStatus() throws Exception;
	
	/**
	 * 根据条件查询技师数量
	 * @param workerNo
	 * @param workerName
	 * @param workerTypeId
	 * @param workerStatus
	 * @return
	 * @throws Exception
	 */
	public int findWorkerCount(String workerNo, String workerName, Integer workerTypeId, String workerStatus) throws Exception;
	
	/**
	 * 根据条件查询技师列表（分页）
	 * @param workerNo
	 * @param workerName
	 * @param workerTypeId
	 * @param workerStatus
	 * @param intPage
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	public List findWorker(String workerNo, String workerName, Integer workerTypeId, String workerStatus, 
			Integer intPage, Integer pageSize) throws  Exception;

	public List findAllWorker() throws  Exception;
	
	/**
	 * 检查技师编号是否重复
	 * @param workerNo
	 * @return 若重复返回true, 否则返回false
	 * @throws Exception
	 */
	public boolean checkWorkerNo(String workerNo) throws Exception;
	
	/**
	 * 新增技师
	 * @param worker
	 * @throws Exception
	 */
	public void addWorker(DtaWorker worker) throws Exception;
}
